package lms.entity;

import java.util.Date;

/**
 * @description: 读者基本信息实体类
 * @author: Grape_Pip
 * @time: 2021/06/19
 */
public class Reader {
    /** 读者编号   */
    private int readerId;
    /** 读者姓名   */
    private String readerName;
    /** 读者性别   */
    private String readerGender;
    /** 读者联系方式   */
    private String readerTel;
    /** 读者专业   */
    private String readerMajor;
    /** 读者注册日期   */
    private Date readerRegisDate;

    /** 读者类型   */
    private ReaderType readerType;
    /** 读者已借阅数量 */
    private int readerBorrow;

    public Reader() {
    }

    public Reader(int readerId, String readerName, String readerGender, String readerTel,
                  String readerMajor, Date readerRegisDate, ReaderType readerType, int readerBorrow) {
        this.readerId = readerId;
        this.readerName = readerName;
        this.readerGender = readerGender;
        this.readerTel = readerTel;
        this.readerMajor = readerMajor;
        this.readerRegisDate = readerRegisDate;
        this.readerType = readerType;
        this.readerBorrow = readerBorrow;
    }

    public int getReaderId() {
        return readerId;
    }

    public void setReaderId(int readerId) {
        this.readerId = readerId;
    }

    public String getReaderName() {
        return readerName;
    }

    public void setReaderName(String readerName) {
        this.readerName = readerName;
    }

    public String getReaderGender() {
        return readerGender;
    }

    public void setReaderGender(String readerGender) {
        this.readerGender = readerGender;
    }

    public String getReaderTel() {
        return readerTel;
    }

    public void setReaderTel(String readerTel) {
        this.readerTel = readerTel;
    }

    public String getReaderMajor() {
        return readerMajor;
    }

    public void setReaderMajor(String readerMajor) {
        this.readerMajor = readerMajor;
    }

    public Date getReaderRegisDate() {
        return readerRegisDate;
    }

    public void setReaderRegisDate(Date readerRegisDate) {
        this.readerRegisDate = readerRegisDate;
    }

    public ReaderType getReaderType() {
        return readerType;
    }

    public void setReaderType(ReaderType readerType) {
        this.readerType = readerType;
    }

    public int getReaderBorrow() {
        return readerBorrow;
    }

    public void setReaderBorrow(int readerBorrow) {
        this.readerBorrow = readerBorrow;
    }

    @Override
    public String toString() {
        return
                "读者编号：" + readerId +"  "+
                "读者姓名：" + readerName + "  " +
                "性别：" + readerGender + "  " +
                "联系方式：" + readerTel + "  " +
                "专业：" + readerMajor + "  " +
                "注册日期：" + readerRegisDate +"  "+
                 readerType ;
    }
}
